﻿<?php use_helper('I18N', 'Date') ?>
<h1><?php echo $artist->getName() ?></h1>

<h2>Bio</h2>
<?php echo $artist->getBiography() ?>

<h2>País</h2>
<?php echo format_country($artist->getCountry()) ?>

<h2>Inicio</h2>
<?php echo format_date($artist->getStartedAt(), 'D') ?>

<?php if($artist->getIsBand()): ?>


<h2>Membros</h2>
<ul>
  <?php foreach($artist->getArtistAssociationsRelatedByAssociationId() as $member) : ?>
  <li><?php echo link_to($member->getName(), '@artist_by_name?artist=' . $member->getSlug()) ?></li>
  <?php endforeach; ?>
</ul>
<?php endif; ?>

<h2>Albuns</h2>
<ul>
  <?php foreach($artist->getAlbums() as $album) : ?>
  <li><?php echo link_to($album->getName(), '@album_by_name?artist=' . $artist->getSlug() . '&album=' . $album->getSlug()) ?></li>
  <?php endforeach; ?>
</ul>
